package com.jyh.db.entity;

import java.util.ArrayList;
import java.util.List;

public class JyhHomePicExample {
    /**
     * jyh_home_pic
     */
    protected String orderByClause;

    /**
     * jyh_home_pic
     */
    protected boolean distinct;

    /**
     * jyh_home_pic
     */
    protected List<Criteria> oredCriteria;

    /**
     *
     * @mbggenerated 2017-10-18
     */
    public JyhHomePicExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    /**
     *
     * @mbggenerated 2017-10-18
     */
    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    /**
     *
     * @mbggenerated 2017-10-18
     */
    public String getOrderByClause() {
        return orderByClause;
    }

    /**
     *
     * @mbggenerated 2017-10-18
     */
    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    /**
     *
     * @mbggenerated 2017-10-18
     */
    public boolean isDistinct() {
        return distinct;
    }

    /**
     *
     * @mbggenerated 2017-10-18
     */
    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    /**
     *
     * @mbggenerated 2017-10-18
     */
    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    /**
     *
     * @mbggenerated 2017-10-18
     */
    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    /**
     *
     * @mbggenerated 2017-10-18
     */
    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    /**
     *
     * @mbggenerated 2017-10-18
     */
    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    /**
     *
     * @mbggenerated 2017-10-18
     */
    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    /**
     * jyh_home_pic 2017-10-18
     */
    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("ID is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("ID is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("ID =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("ID <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("ID >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("ID >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("ID <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("ID <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("ID in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("ID not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("ID between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("ID not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andHomepagepicIsNull() {
            addCriterion("homePagePic is null");
            return (Criteria) this;
        }

        public Criteria andHomepagepicIsNotNull() {
            addCriterion("homePagePic is not null");
            return (Criteria) this;
        }

        public Criteria andHomepagepicEqualTo(String value) {
            addCriterion("homePagePic =", value, "homepagepic");
            return (Criteria) this;
        }

        public Criteria andHomepagepicNotEqualTo(String value) {
            addCriterion("homePagePic <>", value, "homepagepic");
            return (Criteria) this;
        }

        public Criteria andHomepagepicGreaterThan(String value) {
            addCriterion("homePagePic >", value, "homepagepic");
            return (Criteria) this;
        }

        public Criteria andHomepagepicGreaterThanOrEqualTo(String value) {
            addCriterion("homePagePic >=", value, "homepagepic");
            return (Criteria) this;
        }

        public Criteria andHomepagepicLessThan(String value) {
            addCriterion("homePagePic <", value, "homepagepic");
            return (Criteria) this;
        }

        public Criteria andHomepagepicLessThanOrEqualTo(String value) {
            addCriterion("homePagePic <=", value, "homepagepic");
            return (Criteria) this;
        }

        public Criteria andHomepagepicLike(String value) {
            addCriterion("homePagePic like", value, "homepagepic");
            return (Criteria) this;
        }

        public Criteria andHomepagepicNotLike(String value) {
            addCriterion("homePagePic not like", value, "homepagepic");
            return (Criteria) this;
        }

        public Criteria andHomepagepicIn(List<String> values) {
            addCriterion("homePagePic in", values, "homepagepic");
            return (Criteria) this;
        }

        public Criteria andHomepagepicNotIn(List<String> values) {
            addCriterion("homePagePic not in", values, "homepagepic");
            return (Criteria) this;
        }

        public Criteria andHomepagepicBetween(String value1, String value2) {
            addCriterion("homePagePic between", value1, value2, "homepagepic");
            return (Criteria) this;
        }

        public Criteria andHomepagepicNotBetween(String value1, String value2) {
            addCriterion("homePagePic not between", value1, value2, "homepagepic");
            return (Criteria) this;
        }

        public Criteria andPagepicdetailIsNull() {
            addCriterion("PagePicDetail is null");
            return (Criteria) this;
        }

        public Criteria andPagepicdetailIsNotNull() {
            addCriterion("PagePicDetail is not null");
            return (Criteria) this;
        }

        public Criteria andPagepicdetailEqualTo(String value) {
            addCriterion("PagePicDetail =", value, "pagepicdetail");
            return (Criteria) this;
        }

        public Criteria andPagepicdetailNotEqualTo(String value) {
            addCriterion("PagePicDetail <>", value, "pagepicdetail");
            return (Criteria) this;
        }

        public Criteria andPagepicdetailGreaterThan(String value) {
            addCriterion("PagePicDetail >", value, "pagepicdetail");
            return (Criteria) this;
        }

        public Criteria andPagepicdetailGreaterThanOrEqualTo(String value) {
            addCriterion("PagePicDetail >=", value, "pagepicdetail");
            return (Criteria) this;
        }

        public Criteria andPagepicdetailLessThan(String value) {
            addCriterion("PagePicDetail <", value, "pagepicdetail");
            return (Criteria) this;
        }

        public Criteria andPagepicdetailLessThanOrEqualTo(String value) {
            addCriterion("PagePicDetail <=", value, "pagepicdetail");
            return (Criteria) this;
        }

        public Criteria andPagepicdetailLike(String value) {
            addCriterion("PagePicDetail like", value, "pagepicdetail");
            return (Criteria) this;
        }

        public Criteria andPagepicdetailNotLike(String value) {
            addCriterion("PagePicDetail not like", value, "pagepicdetail");
            return (Criteria) this;
        }

        public Criteria andPagepicdetailIn(List<String> values) {
            addCriterion("PagePicDetail in", values, "pagepicdetail");
            return (Criteria) this;
        }

        public Criteria andPagepicdetailNotIn(List<String> values) {
            addCriterion("PagePicDetail not in", values, "pagepicdetail");
            return (Criteria) this;
        }

        public Criteria andPagepicdetailBetween(String value1, String value2) {
            addCriterion("PagePicDetail between", value1, value2, "pagepicdetail");
            return (Criteria) this;
        }

        public Criteria andPagepicdetailNotBetween(String value1, String value2) {
            addCriterion("PagePicDetail not between", value1, value2, "pagepicdetail");
            return (Criteria) this;
        }

        public Criteria andStateIsNull() {
            addCriterion("state is null");
            return (Criteria) this;
        }

        public Criteria andStateIsNotNull() {
            addCriterion("state is not null");
            return (Criteria) this;
        }

        public Criteria andStateEqualTo(Integer value) {
            addCriterion("state =", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateNotEqualTo(Integer value) {
            addCriterion("state <>", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateGreaterThan(Integer value) {
            addCriterion("state >", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateGreaterThanOrEqualTo(Integer value) {
            addCriterion("state >=", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateLessThan(Integer value) {
            addCriterion("state <", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateLessThanOrEqualTo(Integer value) {
            addCriterion("state <=", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateIn(List<Integer> values) {
            addCriterion("state in", values, "state");
            return (Criteria) this;
        }

        public Criteria andStateNotIn(List<Integer> values) {
            addCriterion("state not in", values, "state");
            return (Criteria) this;
        }

        public Criteria andStateBetween(Integer value1, Integer value2) {
            addCriterion("state between", value1, value2, "state");
            return (Criteria) this;
        }

        public Criteria andStateNotBetween(Integer value1, Integer value2) {
            addCriterion("state not between", value1, value2, "state");
            return (Criteria) this;
        }

        public Criteria andOrderpicIsNull() {
            addCriterion("orderPic is null");
            return (Criteria) this;
        }

        public Criteria andOrderpicIsNotNull() {
            addCriterion("orderPic is not null");
            return (Criteria) this;
        }

        public Criteria andOrderpicEqualTo(Integer value) {
            addCriterion("orderPic =", value, "orderpic");
            return (Criteria) this;
        }

        public Criteria andOrderpicNotEqualTo(Integer value) {
            addCriterion("orderPic <>", value, "orderpic");
            return (Criteria) this;
        }

        public Criteria andOrderpicGreaterThan(Integer value) {
            addCriterion("orderPic >", value, "orderpic");
            return (Criteria) this;
        }

        public Criteria andOrderpicGreaterThanOrEqualTo(Integer value) {
            addCriterion("orderPic >=", value, "orderpic");
            return (Criteria) this;
        }

        public Criteria andOrderpicLessThan(Integer value) {
            addCriterion("orderPic <", value, "orderpic");
            return (Criteria) this;
        }

        public Criteria andOrderpicLessThanOrEqualTo(Integer value) {
            addCriterion("orderPic <=", value, "orderpic");
            return (Criteria) this;
        }

        public Criteria andOrderpicIn(List<Integer> values) {
            addCriterion("orderPic in", values, "orderpic");
            return (Criteria) this;
        }

        public Criteria andOrderpicNotIn(List<Integer> values) {
            addCriterion("orderPic not in", values, "orderpic");
            return (Criteria) this;
        }

        public Criteria andOrderpicBetween(Integer value1, Integer value2) {
            addCriterion("orderPic between", value1, value2, "orderpic");
            return (Criteria) this;
        }

        public Criteria andOrderpicNotBetween(Integer value1, Integer value2) {
            addCriterion("orderPic not between", value1, value2, "orderpic");
            return (Criteria) this;
        }
    }

    /**
     * jyh_home_pic
     *
     * @mbggenerated do_not_delete_during_merge 2017-10-18
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    /**
     * jyh_home_pic 2017-10-18
     */
    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}